<?php
/**
 * Created by PhpStorm.
 * User: YC
 * Date: 2017/4/30
 * Time: 13:51
 */

namespace app\admin\validate;

use think\Validate;

class Product extends Validate
{
    protected $rule = [
        'title|产品标题' => 'require',
        'info|详情'   =>  'require',
        'price|价格'   =>  'require|float',
        'file_path|图片'   =>  'require',
    ];
}